package com.firewolf.springboot;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TemplateController {
	@RequestMapping("leaf")
	public String leaf(Map<String,String> map){
		map.put("name", "thymeleaf");
		return "leaf";
	}
	
	@RequestMapping("free")
	public String free(Map<String,String> map){
		map.put("name", "freemarker");
		return "free";
	}
}
